package com.spring.test;

import java.util.Locale;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class BoardController {
	
	private static final Logger logger = LoggerFactory.getLogger(BoardController.class);
	
	@RequestMapping(value = "/board", method = RequestMethod.GET)
	public String getBoardList (Locale locale, Model model) {
		
		logger.info("getBoardList method Start!");
		
		logger.info("getBoardList method End!");
		
		return "boardList";
	}
	
	@RequestMapping(value = "/board/add", method = RequestMethod.GET)
	public String regBull (Locale locale, Model model) {
		
		logger.info("regBull method Start!");
		
		logger.info("regBull method End!");
		
		return "bullReg";
	}
}
